﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RuleCode.Table;

namespace map.member.order
{
    public partial class OrderResult : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Request["id"] != null)
                {
                    string recid = Request["id"];
                    taobaouseritems useritem = taobaouseritems.Find("recid=" + Request["id"]);
                    if (useritem.Count > 0)
                    {
                        ItemLiteral.Text ="<a href=\""+ taobaouseritems.getitemlinkstringcbw(useritem.taobaoiid.Value)+"\">订购的宝贝</a>";
                        cbuser user =cbuser.Find ("cbuserid='"+useritem.taobaoUserId .Value +"'" );
                        cbshop  shop = cbshop.Find("cbuserid='" + useritem.taobaoUserId.Value + "'");
                        if (shop.Count > 0)
                        {
                            SellerLiteral.Text = "<a href=\"/s.aspx?id="+user.RECID.ToString ()+"\" >"+shop.cbshoptitle .Value +"</a>";
                        }
                    }
                }
            }
        }
    }
}
